var createCounter = function(i) {
   return {
    init:i,
    num:i,
    increment(){
        this.num++
        return this.num
    },
    decrement(){
        this.num--
        return this.num
    },
    reset(){
        this.num=this.init
        return this.num
    }
   } 
}